using Amber.Arch.Catty;

var builder = WebApplication.CreateBuilder(args);

builder.Host.UseServiceProviderFactory(new CatServiceProviderFactory());

builder.Host.ConfigureContainer<CatBuilder>(builder =>
{
    builder.Register(typeof(IFoo).Assembly);
});

builder.Services.AddControllers();

var app = builder.Build();

app.MapControllers();

app.Run();
